<?php
return array(
		
	//'配置项'=>'配置值'
	/* 数据库设置 */
	'DB_TYPE'					=>	'mysql',
	'DB_HOST'					=>	'hdm-108.hichina.com',//192.168.1.10127.0.0.1
	'DB_NAME'					=>	'hdm1080149_db',
	'DB_USER'					=>	'hdm1080149',
	'DB_PWD'					=>	'12345678',
	'DB_PORT'					=>	'3306',
	'DB_PREFIX'					=>	'et_',
		
	//超级管理员角色配置
	'ADMIN_ROLE'                => '8',
		
	//文件存储配置
	'FL_UPLOAD_URL'   			=> ABS_URL.'rest.php?s=FIL/Index/uploadFile', //上传处理路径
	//'FL_UPLOAD_URL'   		=> 'http://up.qiniu.com', //存储路径
	'FL_PLUGUN_PATH'   			=> ABS_URL.'Public/Plugins/Etfile/', //存储路径
	'FL_PATH'   			    => 'Utest/', //存储路径
	'FL_STORAGE'			    => 'Local', //存储方式，支持Local、Qiniu
	'FL_maxSize'              	=> 2*1024*1024, //允许上传的大小
	'FL_imageExts'              => array('jpg','png','gif'), //允许上传的文件类型
	'FL_allowExts'              => array('jpg','png','gif','zip','rar','mp3','wav','avi','wmv','pdf'), //允许上传的文件类型
	'FL_thumbMaxWidth'          => '120,400', //缩略图宽，支持两个，用逗号隔开
	'FL_thumbMaxHeight'         => '120,400', //缩略图高，支持两个，用逗号隔开
	'FL_thumbSuffix'            => '?120x120,?400x400', //缩略图尺寸，无须缩略图留空
	'FL_WATER'			        => '9', //水印位置，支持9宫格+随机位置，0随机，1-9按九宫格位置
	'FL_WATER_ALPHA'            => '0.9', //水印透明度，0-1的小数
	'FL_WATER_THUMB'			=> '', //水印图片，相当于站点根目录的位置
	'FL_WATER_Text'				=> '易达客', //水印文字
	'FL_WATER_FONT'				=> '', //水印文字字体
	'FL_WATER_FONTSIZE'         => '', //水印文字字体大小

	'MAP_AK'                    => '6RQGXCYLSCZzLuPgZnnSMMrd',// 6RQGXCYLSCZzLuPgZnnSMMrd 
	'MAP_OUTLET_ID'             => '50005',
	'MAP_ADDRESS_ID'            => '59238',
	'MAP_STORGE'                => 'http://api.map.baidu.com/geodata/v2/poi/',
	'MAP_COLUMN'                => 'http://api.map.baidu.com/geodata/v2/column/',
	'MAP_NEARBY'                => 'http://api.map.baidu.com/geosearch/v2/nearby',
	'MAP_LOCAL'                 => 'http://api.map.baidu.com/geosearch/v2/local',
	'MAP_ADDRESSPOI'            => 'http://api.map.baidu.com/geocoder/v2/',
	'MAP_IPPOI'                 => 'http://api.map.baidu.com/location/ip',
	'MAP_DEFAULT_ADDR'          => '中国湖南长沙',
	'MAP_RADIUS'                => 20000,
		
	'APP_REST'                  => ABS_URL."rest.php?s=",
	
	'ERROR_PAGE'            	=> ABS_URL.'Public/Page/error.html',//debug 设置为false才生效
	'SHOW_ERROR_MSG'        	=> true,    // 显示错误信
	'SHOW_PAGE_TRACE'			=> 0,//开启页面trace
	'OPEN_LOG'                  => false,//开启后台日志管理记录
	'COOKIE_KEEP_TIME'          => 3600*24*30,//
	
	//模板标签
	'TAGLIG_LOAD'               => true,
	'APP_AUTOLOAD_PATH'         => '@.TagLib',
	'TAGLIB_BUILD_IN'           => 'cx,html,et',
		
	//模板
	'TMPL_DETECT_THEME'			=> 	true, // 自动侦测模板主题
	'TMPL_ACTION_ERROR'         =>  'Public:success', // 默认错误跳转对应的模板文件
	'TMPL_ACTION_SUCCESS'       =>  'Public:success', // 默认成功跳转对应的模板文件
	'web_admin_pagenum'         =>  10,//默认分页记录数
	'PAGE_NUMS'                 =>  10,//默认分页记录数
	
	//多国语言
	'LANG_LIST'					=>	'zh-cn,en-us',//必须写可允许的语言列表
	'LANG_ARRAY'			    =>	array("zh-cn"=>"简体","en-us"=>"English"),
	'LANG_MAP'					=>	array(
		'en-us'  => 'en,en-ie,en-au,en-bz,en-ph,en-029,en-ca,en-zw,en-my,en-us,en-za,en-tt,en-sg,en-nz,en-jm,en-in,en-gb,',
		'zh-cn'  => 'zh,zh-cn,zh-hans,zh-sg,',
		'zh-tw'  => 'zh-tw,zh-hk,zh-mo,zh-cht,'
	),
	'TMPL_LANG_ARR' => 	array(
		'en-us' => 'en-us',
		'zh-cn' => 'zh-cn',
	),
	
	//多站点支持
	'MORESITE_OPEN'	            => true,
	
	//多终端支持
	'MOREDEVICE_OPEN'           => true,
	'MOREDEVICE_LIST'           => array(
		'pc' => array('cfg_form_device_pc','checked'),
		'mobile' => array('cfg_form_device_mobile','checked'),
		'wechat' => array('cfg_form_device_wechat','checked'),
		'app' => array('cfg_form_device_app','')
	),
	
	//微信配置
	'WECHAT_OPEN'	          => true,
		
	//其他配置
	'URL_MODEL'	                => 3,                // 如果你的环境不支持PATHINFO 请设置为3
	'CONFUSE'                   => 'x-)a#2(^9',      // 加密混淆字符串
	'WECHAT_URL'                => 'wechat.php?s=',  // 微信回复图文链接
	'OPEN_ID_URL'               => '&openid=',       // 回复自动微信会员标识参数
	'CART_TO_USER'              =>  true,			 // 是否允许保存游客的购物车信息转移到登陆用户
	'MOBILE_CODE'               => 'mobile_code',    // 手机验证码
	'AREA_GUID'                 => 'qwer1345tylq3456',
	
	'BEHAVIOR_ACTION' => array("view"=>"浏览页面","reg"=>"注册帐号"),
	
	//距离规则  0前距离1后距离2时间3价格
	'CONF_OUTLET_JULI' => array(
		'0' => array("0"=>1,"1"=>"3000","2"=>"10","3"=>"15"),
		'1' => array("0"=>"3000","1"=>"4000","2"=>"20","3"=>"22"),
		'2' => array("0"=>"4000","1"=>"5000","2"=>"30","3"=>"29"),
		'3' => array("0"=>"5000","1"=>"6000","2"=>"40","3"=>"36"),
		'4' => array("0"=>"6000","1"=>"7000","2"=>"50","3"=>"43"),
		'5' => array("0"=>"7000","2"=>"80","3"=>"60"),
	),
		
	// 订单确认页面是否送饮料
	'IS_SEND_DRINK'  => array(
			0=>array("en-us"=>"Not need free drink","zh-cn"=>"不需要"),
			1=>array("en-us"=>"Need Coke","zh-cn"=>"可乐"),
			2=>array("en-us"=>"Need Sprite","zh-cn"=>"雪碧"),
			3=>array("en-us"=>"Need Water","zh-cn"=>"矿泉水"),
	),
		
	'CITY_ARRAY' => array(
			'Shanghai' => '上海',
			'Beijing'  => '北京',
			'Canton'   => '广州',
			'Shunyi'   => '顺义',
	),
		
	
	'CITYID' =>array(
		'850' => array(0=>'beijing',1=>"北京"),
		'866' => array(0=>'shanghai',1=>"上海"),
		'867' => array(0=>'guangzhou',1=>"广州"),
		'930' => array(0=>'shunyi',1=>"顺义"),	
	),
		
	// 口味标签
	'TASTE'  => array(
			0=>array("en-us"=>"Not spicy","zh-cn"=>"不辣"),
			1=>array("en-us"=>"A little spicy","zh-cn"=>"一点点辣"),
			2=>array("en-us"=>"More Rice","zh-cn"=>"多些米饭"),
			3=>array("en-us"=>"Sweet Dot","zh-cn"=>"一点甜"),
	),
		
	//固定系数
	'CONF_OUTLET_XISHU' => '1',
		
	//优惠劵使用场景
	'SENCE_YHJ' => array(
		//场景标识            场景名称   跳转提示
		'register_ok' => array('注册成功','cfg_sence_yhj_reg','Yhj/index','register'),
		'order_ok'    => array('订单成功','cfg_sence_yhj_ord','Yhj/index','order'),
		'qianshou_ok' => array('签收成功','cfg_sence_yhj_qianshou','Yhj/index','qianshou'),
	),
	
	//抽奖活动使用场景
	'SENCE_ACTIVE' => array(
		//场景标识            场景名称   跳转提示
		'register_ok' => array('注册成功','cfg_sence_active_eg','Actlottery/lottery_','register'),
		'order_ok'    => array('订单成功','cfg_sence_active_ord','Actlottery/lottery_','order'),
		'qianshou_ok' => array('签收成功','cfg_sence_active_qianshou','Actlottery/lottery_','qianshou'),
	),
	
	//分页输出html
	'PAGE_THEME' => array(
		"default" => " %totalRow% %header% %nowPage%/%totalPage% %pagenick% %upPage% %downPage% %first%  %prePage%  %linkPage%  %nextPage% %end%",
		"wechat"  => " %totalRow% %header% %nowPage%/%totalPage% %pagenick% %prePage%  %linkPage%  %nextPage%"
	),
		
	//帐号配置
	'ACCOUNT_CONFIG'            => array(
			"field"    => "mobile",
			"actfield" => "actmobile",
			"username" => array(
					'findpwd' => 'findMobile',
					"func"  => "ismobile",
					"exist" => "pbc_login_username_exist",
					"error" => "pbc_login_username_error",
					"after" => "regMobile",
					'lang'  => "pbc_form_sms",
			),
			"mobile"   => array(
					'findpwd' => 'findMobile',
					"func"  => "ismobile",
					"exist" => "pbc_login_mobile_exist",
					"error" => "pbc_login_mobile_error",
					"after" => "regMobile",
					'lang'  => "pbc_form_sms",
			),
			"email"    => array(
					'findpwd' => 'findEmail',
					"func"  => "isemail" ,
					"exist" => "pbc_login_email_exist",
					"error" => "pbc_login_email_error",
					"after" => "regEmail",
					'lang'  => "pbc_form_email",
			),
			"active"   => 1          //帐号注册时激活状态
	),
		
	//订单状态
	'ORDER_STATUS'  => array(
		"-1" => "取消",
		"-2" => "退货",
		"1"  => "未确认",
		"2"  => "已确认",
		"3"  => "已分配",
		"4"  => "到达餐厅",
		"5"  => "配货完成",
		"6"  => "已签收",
		"7"  => "客户拒签",
	),

	//订单状态
	'ORDER_ENSTATUS'  => array(
		"-1" => "Cancel",
		"-2" => "Sales return",
		"1"  => "Unconfirmed",
		"2"  => "Confirmed",
		"3"  => "Assigned",
		"4"  => "Restaurant in",
		"5"  => "Distribution",
		"6"  => "Received",
		"7"  => "Refusal",
	),
		
	//订单状态改变操作
	'ORDER_OPREATE'     => array(
		"-1" => array("tip"=>1,"func"=>"orderCancel"  ,"stu"=>'*','sign'=>'tipstu','admin'=>false),
		"1"  => array("tip"=>0,"func"=>"orderRevert"  ,"stu"=>2  ,'sign'=>'tipstu','admin'=>false,'tipadmin'=>true,'adminsign'=>'tiporderadmin'),
		"2"  => array("tip"=>0,"func"=>"orderAllot"   ,"stu"=>1  ,'sign'=>'tipstu','admin'=>'tipAllot'),
		"3"  => array("tip"=>0,"func"=>"orderDelivery","stu"=>2  ,'sign'=>'tipstu','admin'=>'tipDelivery'),
		"4"  => array("tip"=>1,"func"=>"orderPeihuo"  ,"stu"=>3  ,'sign'=>'tiphuo','admin'=>false),
		"5"  => array("tip"=>1,"func"=>"orderConfirm" ,"stu"=>4  ,'sign'=>'tipstu','admin'=>false),
		"6"  => array("tip"=>1,"func"=>"orderRefuse"  ,"stu"=>4  ,'sign'=>'tipstu','admin'=>false),
		"7"  => array("tip"=>1,"func"=>"orderReturn"  ,"stu"=>'*','sign'=>'tipstu','admin'=>false)
	),
	
	//支付状态
	'ORDER_PAY'  => array(
		"-1" => "取消",
		"1"  => "已支付",
		"2"  => "未支付",
	),
	
	//订单类型
	'ORDER_TABLE'  => array(
		"Product"  => array("table"=>"Product","id"=>"id" ,"name"=>"cfg_order_common" ,"cart"=>"MemberCart", "order"=>"OrderProductView","vip"=>true,"outlet"=>true,"ship"=>true),
		"Groupou"  => array("table"=>"Groupou","id"=>"pid","name"=>"cfg_order_groupou","cart"=>"GroupouView","order"=>"OrderGroupouView","vip"=>true,"outlet"=>true,"ship"=>true),
		"Seckill"  => array("table"=>"Seckill","id"=>"pid","name"=>"cfg_order_seckill","cart"=>"SeckillView","order"=>"OrderSeckillView","vip"=>true,"outlet"=>true,"ship"=>true),
	),
		
	//支付方式
	'PAYMENT_TYPE'  => array(
		
		"Paypal" => array("lang"=>"Paypal","show"=>0,"checked"=>"","cfg"=>array(
			'version'       => '98',
			'payment_type'  => 'Sale',//Sale Authorization
			'currency_type' => 'HKD',
			'buttoncode'    => 'PP-ECWizard',
			'return_url'    => 'Order/paypal',
			'cancel_url'    => 'Order/paycancel',
			'token_name'    => 'PPSESSIONTOKEN',
			'payIDname'     => 'PPPAYERID',
			'storeName'     => 'etackle.com.hk',
			'api_username'  => '4645003-facilitator_api1.qq.com',
			'api_password'  => '1382522149',
			'api_signature' => 'AmzI270GafaLS1jdYwOKFVauvbUjAiRsSnCnosU0NtRraSvHOJCRG2.a',
			'api_endpoint'  => 'https://api-3t.sandbox.paypal.com/nvp',
			'paypal_url'    => 'https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token='
			),
			"param"=>array("return_url","cancel_url"),
		    "order"=>array("invoice"=>"orderno","amount"=>"totalfee","item_number"=>"amount")
		),/**/
			
		"Bank" => array("lang"=>"货到付款","show"=>1,"checked"=>"checked","cfg"=>array(
			'test'          => true,
			'gateway'=>'Order/paysuccess'
			),
			"param"=>array("gateway")
		),
			
		"Alipay" => array("lang"=>"支付宝","show"=>2,"cfg"=>array(
			'custom'            => '易达客',//商户名称
			'agent'             => 'C4335994340215837114',
			'code'              => 'alipay',
			'alipay_account'    => 'tangbl@aliyun.com',
			'alipay_key'        => 'i66w7bnf9gp0e3eckob057gx1mtyqsb8',
			'alipay_partner'    => '2088102155119403',
			'alipay_pay_method' => '1',//0:使用标准双接口,1:使用担保交易接口,2:使用即时到帐交易接口
			'return_url'        => 'Order/paysuccess',
			'notify_url'        =>  ABS_URL."/u.php",
			'cancel_url'        => 'Order/paycancel',
		),"param"=>array("return_url",'cancel_url'),//notify_url
		  "order"=>array("out_trade_no"=>"orderno","price"=>"totalfee")
		),

		"Tenpay" => array("lang"=>"财付通","show"=>2,"cfg"=>array(
				"product_name"  => "etackle product",
				"key"           => "e82573dc7e6136ba414f2e2affbe39fa",
				"partner"       => "1900000113",
				"trade_mode"    => "1",//1即时到帐模式|2中介担保模式|3后台选择
				"seller_id"     => "",
				"agent_type"    => "0",
				"agentid"       => "",
				"trans_type"    => "1",
				"time_expire"   => "",
				"transport_fee" => "",
				'return_url'    => 'Order/paysuccess',
				'notify_url'    => 'Order/paynotify',
				'cancel_url'    => 'Order/paycancel',
				'bank_type'     => '0',      //银行类型，默认为财付通
				"fee_type"      => "1",      //币种
				"subject"       => 'Etackle',//商品名称（中介交易时必填）
				"sign_type"     => 'MD5',    //签名方式，默认为MD5，可选RSA
				"service_version"=>"1.0",    //接口版本号
				"input_charset" => "GBK",  //字符集
 				"gateway"       => "https://gw.tenpay.com/gateway/pay.htm",
				"verifyurl"     => "https://gw.tenpay.com/gateway/simpleverifynotifyid.xml",
			  //"gateway"       => "https://wap.tenpay.com/cgi-bin/wappayv2.0/wappay_init.cgi",
		),"param"=>array("return_url","notify_url",'cancel_url'),
		  "order"=>array("out_trade_no"=>"orderno","total_fee"=>"totalfee","remarkexplain"=>"content")
		)
	),

	"CITY_SHANGHAI"  =>array("id"=>1, "zh-cn"=>"上海",  "en-us"=>"Shanghai"),
	"CITY_BEIJING"   =>array("id"=>2, "zh-cn"=>"北京",  "en-us"=>"Beijing"),
	"CITY_GUNAGZHOU" =>array("id"=>3, "zh-cn"=>"广州",  "en-us"=>"Guangzhou"),
	"CITY_SHUNYI"    =>array("id"=>4, "zh-cn"=>"顺义",  "en-us"=>"Shunyi"),
		
	//大写字母配置
	"ALPHA"    =>array("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"),
	//餐厅类型
	"RESTYPE"  =>array("1"=>"加盟店","2"=>"直营店"),
	//餐厅星级
	"RESLEVEL" =>array("1"=>"一星级", "2"=>"二星级", "3"=>"三星级", "4"=>"四星级", "5"=>"五星级"),
				
	//文件缓存配置
	'DATA_CACHE_TIME'           => 0,         // 数据缓存有效期 0表示永久缓存
	'DATA_CACHE_COMPRESS'       => false,     // 数据缓存是否压缩缓存
	'DATA_CACHE_CHECK'          => false,     // 数据缓存是否校验缓存
	'DATA_CACHE_PREFIX'         => '',        // 缓存前缀
	'DATA_CACHE_TYPE'           => 'File',    // 数据缓存类型
	'DATA_CACHE_PATH'           => TEMP_PATH, // 缓存路径设置 (仅对File方式有效)
	'DATA_CACHE_SUBDIR'         => false,     // 使用子目录缓存 (根据缓存标识的哈希创建子目录)
	'DATA_PATH_LEVEL'           => 2,         // 子目录缓存级别
	
	/**
	 * 缓存key值
	 * reply_cache_solevar  (微信回复) 
	 * _menutree_roleid     (左侧菜单)  
	 * _accessaction_authid (rbac验证方法)
	 * Sysconfig      (系统配置)  
	 * cate_lang_module     (全局分类 )
	 *
	 **/
);

?>